sit idly

Translations
сидеть без дела
He would sit idly for hours, lost in thought.
Он мог часами сидеть без дела, погружённый в мысли.